package com.xingkeduo.pojo.enums;

/**
 * 文件概述
 *
 * @author wangxilong <wangxilong@xingkeduo.com>
 * @version id:v0.1 19-1-7 下午3:24
 * @package BeautyOS
 * @copyright Copyright (c) XKD 2019
 */
public enum ShopsType {
    DIRECT(1, "直营店"),
    LEAGUE(2, "加盟店"),
    DRMANGE(3, "直管店"),
	SCHOOL(4, "快剪学院");

    private Integer value;

    private String desc;

    ShopsType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    //获取枚举对象
    public static ShopsType get(Integer value){
        for(ShopsType shopsType: ShopsType.values()) {
            if (shopsType.getValue().equals(value)) {
                return shopsType;
            }
        }
        return null;
    }

}
